﻿using Kylin.Wiki.Model.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Kylin.Wiki.Model.View
{
    public class DocumentVM
    {
        /// <summary>
        /// 文档ID
        /// </summary> 
        [DisplayName("文档ID")] 
        public int ID { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        [DisplayName("父级ID")] 
        public int? PID { get; set; }

        /// <summary>
        /// 文档名称
        /// </summary>
        [DisplayName("文档名称")] 
        public string DocumentName { get; set; }


        /// <summary>
        /// 标签
        /// </summary>
        [DisplayName("标签")] 
        public string Tag { get; set; }


        /// <summary>
        /// 1 page 2 dir
        /// </summary>
        [DisplayName("1 page 2 dir")] 
        public int? Type { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        [DisplayName("路径")] 
        public string Path { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [DisplayName("排序")] 
        public int? OrderNum { get; set; }


        /// <summary>
        /// 子级菜单
        /// </summary>
        public List<DocumentVM> Children { get; set; }
    }

    public class DocumentViewVM:Document
    {
        public string Content { get; set; }

        public int UserID { get; set; }

        public int Permission { get; set; }

    }

    public class DocumentUserVM
    { 
        public int ID { get; set; }

        public int UserID { get; set; }

        public int DocumentID{ get; set; }

        public int Permission { get; set; }

        public string UserName { get; set; }

        public string DisplayName { get; set; }


    }
}
